package com.fzj.example.design.responsibilitychain;


public class ConcreteHandler2 extends Handler {

    @Override
    public void handlerRequest(String request) {
        if(request.equals("two")){
            System.out.println("ConcreteHandler2");
        }else{
            if(getNext()!=null){
                getNext().handlerRequest(request);
            }else{
                System.out.println("no request");
            }
        }
    }
}
